package com.ruoyi.game.core.exception;

public class GameOpException extends RuntimeException {
    private final int errorCode;
    private final String errorMessage;

    public GameOpException(int errorCode, String errorMessage) {
        super(errorMessage); // 可选
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }

    public int getErrorCode() {
        return errorCode;
    }

    @Override
    public String getMessage() {
        return errorMessage;
    }
}

